package com.wtwd.campus.h5_manager.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.H5Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.campus.h5_manager.entity.vo.H5CustomerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2022-03-07
 */
@Mapper
public interface H5CustomerMapper extends BaseMapper<H5Customer> {

    Integer addCustomer(H5Customer h5Customer);

    /**
     * 根据条件分页查询客户列表(此处只做了)
     *
     * @param searchMap
     * @param page
     * @return
     */
    IPage<H5CustomerVo> queryCustomerPage(@Param("data") Map<String, Object> searchMap, Page<H5CustomerVo> page);
}
